import os

# 项目根目录（获取当前文件的父目录的父目录）
PROJECT_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# 日志目录（项目根目录下的logs）
LOGS_DIR = os.path.join(PROJECT_ROOT, 'logs')
# 元素定位配置目录
LOCATORS_DIR = os.path.join(PROJECT_ROOT, 'data')

# YAML - 元素定位文件路径
# 登录文件路径
LOGIN_PAGE_PATH = os.path.join(LOCATORS_DIR, 'login_page.yaml')

ADD_RAYMENT_PRODUCT = os.path.join(LOCATORS_DIR, 'pay_manage.yaml')
SET_UP_PAYMENT_METHOD = os.path.join(LOCATORS_DIR, 'pay_manage.yaml')
TAKE_DOWN = os.path.join(LOCATORS_DIR, 'pay_manage.yaml')
RAYMENT_DELETE = os.path.join(LOCATORS_DIR, 'pay_manage.yaml')
ACCOUNT_NO_PATH = os.path.join(LOCATORS_DIR, 'account_manage.yaml')
TRANSCION_MANAGEMENT = os.path.join(LOCATORS_DIR, 'account_manage.yaml')
BUSINESS_USE_CASES_FOR_PAYMENT_BUSINESS = os.path.join(LOCATORS_DIR, 'pay_manage.yaml')

ALLURE_PATH=os.path.join(PROJECT_ROOT, 'allure', 'allure-results','widgets','summary.json')
# 权限管理文件路径
QX_MANAGEMENT_PATH = os.path.join(LOCATORS_DIR, 'permission_manage.yaml')
PAYMENT_PRODUCTS_MANAGEMENT_PATH = os.path.join(LOCATORS_DIR, 'payment_products.yaml')

# 删除支付产品
PAY_PRODUCT_DELETE_PATH = os.path.join(LOCATORS_DIR, 'pay_manage.yaml')
# 对账管理文件路径
RECONILIATION_MANAGE_PATH = os.path.join(LOCATORS_DIR,'reconciliation_manage.yaml')
# 支付管理文件路径
PAYMANAGE = os.path.join(LOCATORS_DIR,'pay_manage.yaml')

















# 数据库配置
class DatabaseConfig:
    # 数据库连接信息

    DB_HOST = "8.138.8.112"
    DB_PORT = 3306
    DB_USER = "root"
    DB_PASSWORD = "Root@2025!"
    DB_NAME = "roncoo_mini_pay_demo"


# 数据库配置实例
db_config = DatabaseConfig()